﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using PMS.XCMG.Entity;
using PMS.XCMG.Models;
using PMS.XCMG.Util;

namespace PMS.XCMG.IBusiness
{
    public interface ISys_RoleBusiness : IBusRepository<Sys_Role>
    {
        Task<PageResult<Sys_Role>> GetPageResultAsync(PageInput<Sys_RoleQM> query);
        Task<List<TreeModel>> GetMenuAsync();
        Task<List<string>> GetAccessAsync(string roleId);
        Task<int> SaveAccessAsync(string roleId, List<KeyValuePair<string, string>> access);
    }
}
